package com.tengfei.blogsystem.controller;

import com.tengfei.blogsystem.response.ResponseResult;
import com.tengfei.blogsystem.response.ResponseState;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version v1.0
 * @author} feige
 * @date 2021-10-19-21:02
 * @description
 */
@RestController
public class ErrorPageController {

    /**
     *
     * @return
     */
    @GetMapping("/403")
    public ResponseResult page403(){
        return new ResponseResult(ResponseState.ERROR_403);
    }

    /**
     *
     * @return
     */
    @GetMapping("/404")
    public ResponseResult page404(){
        return new ResponseResult(ResponseState.ERROR_404);
    }

    /**
     *
     * @return
     */
    @GetMapping("/504")
    public ResponseResult page504(){
        return new ResponseResult(ResponseState.ERROR_504);
    }

    /**
     *
     * @return
     */
    @GetMapping("/505")
    public ResponseResult page505(){
        return new ResponseResult(ResponseState.ERROR_505);
    }
}
